package demo.autowired;

import org.springframework.beans.factory.annotation.Autowired;

/**
 * Created with IntelliJ IDEA.
 * User: supereme
 * Date: 8/26/13
 * Time: 1:27 AM
 * To change this template use File | Settings | File Templates.
 */
public class Product {

    private Integer price;
    private String name;

    @Autowired(required=false)
    private Type type;



    public void setPrice(Integer price) {
        this.price = price;
    }



    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Product{" +
                "price=" + price +
                ", name='" + name + '\'' +
                ", type=" + type +
                '}';
    }
}
